<?php

require_once dirname(__FILE__) . '/Space.php';
require_once dirname(__FILE__) . '/Space/Go.php';
require_once dirname(__FILE__) . '/Space/GoToJail.php';
require_once dirname(__FILE__) . '/Space/IncomeTax.php';
require_once dirname(__FILE__) . '/Space/LuxuryTax.php';

class Board_SpaceMaker
{
    public function make($name, $board)
    {
        switch($name) {
            case 'Go':
                return new Board_Space_Go($name, $board);
            case 'Go To Jail':
                return new Board_Space_GoToJail($name, $board);
            case 'Income Tax':
                return new Board_Space_IncomeTax($name, $board);
            case 'Luxury Tax':
                return new Board_Space_LuxuryTax($name, $board);
            default:
                return new Board_Space($name, $board);
        }
    }
}
